package com.afollestad.materialdialogs;

import ohos.agp.utils.TextAlignment;

public enum GravityEnum {
    START,
    CENTER,
    END;

    public int getGravityInt() {
        switch (this) {
            case START:
                return TextAlignment.START;
            case CENTER:
                return TextAlignment.HORIZONTAL_CENTER;
            case END:
                return TextAlignment.END;
            default:
                throw new IllegalStateException("Invalid gravity constant");
        }
    }

    public int getTextAlignment() {
        switch (this) {
            case CENTER:
                return TextAlignment.CENTER;
            case END:
                return TextAlignment.END;
            default:
                return TextAlignment.START;
        }
    }
}
